home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / QuickDraw3D 1.6 SDK / Mac SampleCode New for 1.6 / RollerCoasterSampleMac / Interfaces / Utils.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-05-18  |  1.9 KB  |  73 lines  |  [TEXT/dosa]

  1. /*
  2.     File:        Utils.h
  3.     
  4.     Contains:    Interface file for Utils.c
  5.     
  6.     Written by:    Scott Kuechle, based on original Gerbils code by Brian Greenstone
  7.  
  8.     Copyright:    © 1998 by Apple Computer, Inc. All rights reserved
  9.     
  10.     Change History (most recent first)
  11.     
  12.         <1>        9/1/98        srk        first file
  13.  
  14.  
  15. */
  16.  
  17. #pragma once
  18.  
  19. /************************************************************
  20. *                                                           *
  21. *    INCLUDE FILES                                          *
  22. *                                                           *
  23. *************************************************************/
  24.  
  25. #if defined(_MSC_VER)
  26. #include "WinPrefix.h"
  27. #else
  28. #include <ConditionalMacros.h>
  29. #endif
  30.  
  31. #include <MacTypes.h>
  32.  
  33. #if TARGET_OS_WIN32
  34.     #define    STRICT
  35.     #include <windows.h>
  36.     #include <WINNT.h>
  37.  
  38.     #include "QTML.h"
  39.     #include "Components.h"
  40.     #include "ImageCompression.h"
  41. #endif
  42.  
  43. #include <TextUtils.h>
  44. #include <Dialogs.h>
  45. #include <Math.h>
  46.  
  47. #include "QD3D.h"
  48. #include "QD3DMath.h"
  49.  
  50. /************************************************************
  51. *                                                           *
  52. *    FUNCTION PROTOTYPES                                    *
  53. *                                                           *
  54. *************************************************************/
  55.  
  56. void Utils_RotatePoint(TQ3Point3D *point, float yangle);
  57. unsigned long Utils_MyRandomLong(void);
  58. float Utils_AngleBetweenVectors(TQ3Vector3D v1, TQ3Vector3D v2);
  59. void Utils_DisplayErrorMsg(char *msg);
  60. void Utils_DisplayFatalErrorMsg(char *msg);
  61.  
  62. void Utils_Mac_GetPictForTexture(short         resourceID,
  63.                                 PicHandle    *picH,
  64.                                 Rect        *picRect);
  65.                                 
  66. #if TARGET_OS_WIN32
  67.     DWORD Utils_Win32_BuildCurDirPath(LPTSTR path, LPTSTR filename);
  68.     ComponentResult Utils_Win32_GetPicFromFile(LPTSTR        filePath,
  69.                                                 PicHandle    *picH,
  70.                                                 Rect        *picRect);
  71.     Boolean Utils_Win32_DoesFileExist(LPTSTR filePath);
  72. #endif
  73.